<?php
namespace app\index\controller;

use app\index\model\Address;
use think\Controller;
use think\Db;

class Hostcity extends Base
{
  public function index()
  {
    $model = new Address();
    $data = input('did');
    $works = $model::with('works')->where('id','=',$data)->find();
    $this->assign('works',$works);
    return view();
  }
}
?>